package com.huizhan.web.view;

import com.huizhan.web.model.*;
import java.util.*;
import java.io.Serializable;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import io.swagger.annotations.*;

@ApiModel(value =  "项目树形结构")
@JsonIgnoreProperties({"hibernateLazyInitializer","handler"})
public class ProjectTree extends Project implements Serializable {
	private static final long serialVersionUID =  271036682679543683L;

    
    public ProjectTree(Project model){
        this.setName(model.getName());
        this.setCreateDate(model.getCreateDate());
        this.setAccountId(model.getAccountId());
        this.setAddress(model.getAddress());
        this.setAppId(model.getAppId());
        this.setAppSecret(model.getAppSecret());
        this.setBanner(model.getBanner());
        this.setEndDate(model.getEndDate());
        this.setEnabled(model.getEnabled());
        this.setAdmin(model.getAdmin());
        this.setPaySecret(model.getPaySecret());
        this.setMerchantId(model.getMerchantId());
        this.setPhone(model.getPhone());
        this.setProjectId(model.getProjectId());
        this.setProjectTypeId(model.getProjectTypeId());
        this.setSignName(model.getSignName());
        this.setSms(model.getSms());
        this.setStartDate(model.getStartDate());
        this.setTotal(model.getTotal());
        this.setUrl(model.getUrl());
        this.children=new ArrayList<ProjectRole>();
    }
    
    /**
     * 子级
     */
	@ApiModelProperty(value = "子级")
    private List<ProjectRole> children ;
    
    /**
     * 获取
     * @return
     */
    public List<ProjectRole> getChildren()
    {
        return this.children;
    }
    
    /**
     * 设置
     * @return
     */
    public void setChildren(List<ProjectRole> model)
    {
         this.children=model;
    }
}